-- GENERATED SPELL FOR [Arcanist Nozzlespring] --


function spell0_15444(pUnit, Event) --@Arcane Missiles,n/a--
pUnit:FullCastSpellOnTarget(15791,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_15444', 575, 1)
end

function spell1_15444(pUnit, Event) --@Fireball,n/a--
pUnit:FullCastSpellOnTarget(13375,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_15444', 3000, 1)
end

function Sorts_15444(pUnit, Event)
local choix_sorts_15444 = math.random(0, 1)
if choix_sorts_15444 == 0 then
pUnit:RegisterEvent('spell0_15444', 1, 1)
end
if choix_sorts_15444 == 1 then
pUnit:RegisterEvent('spell1_15444', 1, 1)
end
end

function mob15444_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_15444', math.random(1500, 3000), 1)
end

function mob15444_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob15444_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob15444_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(15444, 1, 'mob15444_Action')
RegisterUnitEvent(15444, 2, 'mob15444_Leave')
RegisterUnitEvent(15444, 3, 'mob15444_Kill')
RegisterUnitEvent(15444, 4, 'mob15444_Die')
